﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Sisocana.Core.Models.ONGDefinidaModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Change The State of an ONG
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <script src="<%: Url.Content("~/Scripts/jquery-ui-1.8.11.js") %>" type="text/javascript"></script>
    <link href="<%: Url.Content("~/Content/themes/base/jquery.ui.all.css") %>" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("p a, input:submit,input:file ").button();
        });
    </script>
<h2>Change The State of an ONG</h2>
<% using (Html.BeginForm()) { %>
<fieldset>
    <legend>ONGDefinidaModel</legend>
    <%: Html.HiddenFor(model => model.sitioId) %>
    <b><div class="display-label">ONG</div></b>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.ongName) %>
    </div>

    <b><div class="display-label">ONG Name</div></b>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.nombreONGDefinida) %>
    </div>

    <b><div class="display-label">Telephone</div></b>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.telefono) %>
    </div>

    <b><div class="display-label">State</div></b>
    <div class="display-field">
        <% if (Model.estadoDefinido == "A")
           { %>
        Active
        <%} %>
        <% else{ %>
        Inactive
        <%} %>
    </div>

    <b><div class="display-label">Paypal Login</div></b>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.paypalLogin) %>
    </div>

    <b><div class="display-label">Paypal Partner</div></b>
    <div class="display-field">
        <%: Html.DisplayFor(model => model.paypalPartner) %>
    </div>


</fieldset>
    <p>
        <% if (Model.estadoDefinido == "A")
           { %>
        <input type="submit" value="Disable" />
        <%} %>
        <% else{ %>
        <input type="submit" value="Enable" />
        <%} %>

    </p>
<% } %>
<p>

    <%: Html.ActionLink("Edit", "updateONGD", new { id=Model.id }) %> |
    <%: Html.ActionLink("Back to List", "Conf", new { idsitio = Model.sitioId, tab = 8 })%>
</p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
